import json


def openJsonFile() -> dict:
    with open("shadow_diff.json", 'r') as file:
        parameters = json.load(file)
    return parameters


if __name__ == "__main__":
    previousDict = openJsonFile().get("event_body").get("previous").get("state").get("desired")
    currentDict = openJsonFile().get("event_body").get("current").get("state").get("desired")
    for item in previousDict:
        if previousDict[item] != currentDict[item]:
            print(f"{item}: {previousDict[item]} -> {currentDict[item]}")
    pass
